const request = require('./request.js');
module.exports.fetchMovieOnInfoList  = function(){
    return request({
        url:"https://api.maoyan.com/mmdb/movie/v4/list/hot.json?channelId=70001&ci=30&utm_medium=android&open=on&homepage=off&limit=10"
    })
}
module.exports.fetchMovieOlazyList  = function(arr){
    return request({
        // url:`https://i.maoyan.com/ajax/moreComingList?token=&movieIds=${arr.data}&optimus_uuid=6AD73920B3BE11EB95C759EFD738A997CE2730A57EA74D6FA80B3D6927FCD46C&optimus_risk_level=71&optimus_code=10`,
        url:`https://api.maoyan.com/mmdb/movie/list/info.json?channelId=70001&movieIds=${arr.data}&ci=30`,
        
 
    
        ...arr,
     
        
    })
}
module.exports.fetchMoviedetail  = function(id=1412992){
    return request({
        url:`https://api.maoyan.com/mmdb/movie/v5/${id}.json?ci=30&channelId=70001&utm_medium=android&version=wallet-v2.18.21&uuid=d9907a6e5006686f01c54d66f7a61121&platform=13&partner=1&riskLevel=71&optimusCode=10`
        // url:`https://api.maoyan.com/mmdb/movie/v5/1277950.json?ci=30&channelId=70001&utm_medium=android&version=wallet-v2.18.21&uuid=d9907a6e5006686f01c54d66f7a61121&platform=13&partner=1&riskLevel=71&optimusCode=10`

    }
    
    )

}
module.exports.fetchcelebrities = function(id=1412992){
    return request({
     
        url:`https://api.maoyan.com/mmdb/v7/movie/${id}/celebrities.json?channelId=70001&version=wallet-v2.18.21&uuid=d9907a6e5006686f01c54d66f7a61121&platform=13&partner=1&riskLevel=71&optimusCode=10 `
        // url:`https://api.maoyan.com/mmdb/v7/movie/1412992/celebrities.json?channelId=70001&version=wallet-v2.18.21&uuid=d9907a6e5006686f01c54d66f7a61121&platform=13&partner=1&riskLevel=71&optimusCode=10 `

    }    
    )}
module.exports.fetchvideo = function(id=1412992){
    return request({
     
        url:`https://api.maoyan.com/sns/common/video/commend/module/videos.json?movieId=${id}&moduleId=12&offset=0&limit=10&timeStamp=1641354794538&channelId=70001`
        // url:`https://api.maoyan.com/sns/common/video/commend/module/videos.json?movieId=1412992&moduleId=12&offset=0&limit=10&timeStamp=1641354794538&channelId=70001`

    }    
    )}

